package com.bright.ghj.overt.pojo.query;

import com.bright.ghj.common.pojo.query.PageQuery;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @Author hxj
 * @Date 2024/1/2 14:52
 * @Description openReportRecord表的查询对象
 */
@Data
@ApiModel(description= "公开主表查询对象")
public class OpenReportRecordQuery extends PageQuery {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "年份")
//    @NotNull(message = "年份不能为空")
    private Integer years;

    @ApiModelProperty(value = "月份")
    private Integer months;

    @ApiModelProperty(value = "地区号")
    private String distNo;

    @ApiModelProperty(value = "账套号")
    private String ztId;

    @ApiModelProperty(value = "账套号列表 该参数跟ztId只有一个有值")
    private List<String> ztIds;

    @ApiModelProperty(value = "表名")
    private String tableName;

    @ApiModelProperty(value = "公开表唯一编号")
    private String sno;

    /**
     * 数据状态 由于数据状态被精简 前后台的status值不一样
     */
    @ApiModelProperty(value = "数据状态")
//    private int[] status;
    private Integer status;

    // 规定公开时间旧项目很多没生成 先不使用
//    @ApiModelProperty(value = "规定公开日期起")
//    private String publicDateBegin;
//
//    @ApiModelProperty(value = "规定公开日期止")
//    private String publicDateEnd;

    @ApiModelProperty(value = "发布日期起")
    private Date uploadDateBegin;

    @ApiModelProperty(value = "发布日期止")
    private Date uploadDateEnd;

    @ApiModelProperty(value = "业务类型（财务：101、党务：102、事务：103等）")
    private Integer ywType;

    @ApiModelProperty(value = "是否已审核 传null则不筛选", example = "null")
    private Boolean isAudit;

    /**
     * 是否已审核通过 false则是审核不通过
     * 注意：该参数仅筛选是否通过 不筛选是否已审核
     */
    @ApiModelProperty(value = "是否已审核通过 传null则不筛选", example = "null")
    private Boolean isAuditOK;

    @ApiModelProperty(value = "是否已发布 传null则不筛选", example = "null")
    private Boolean isPublish;

    private String[] userDistNos;
    private String[] userZtIds;

}
